package com.springboot.mapper;

import com.springboot.model.PatientMageInfo;
import com.springboot.model.UserLoginForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

@Mapper
public interface UserLoginFormMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(UserLoginForm record);

    int insertSelective(UserLoginForm record);

    UserLoginForm selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(UserLoginForm record);

    int updateByPrimaryKey(UserLoginForm record);

    //通过手机号查找User
    UserLoginForm selectByTel(String userTel);
    //通过姓名查找用户
    UserLoginForm selectUserByName(String userName);
    //通过用户类型查找用户
    ArrayList<UserLoginForm> selectByType(Integer userType);
    //通过用户类型查找患者用户
    ArrayList<PatientMageInfo> selectAllPatient();
    //查询所有预约过的用户
    ArrayList<PatientMageInfo> getBookedPatient();
    //查询为预约过的用户
    ArrayList<PatientMageInfo> getUnbookedPatient();
}